<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/4/1
  Time: 10:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>试卷库</title>
</head>
<body>
<button value="返回" onclick="back()"></button>
<input type="button" value="新建" style="margin-left: 20px" onclick="addpaper()"><br>
<c:forEach items="${papers}" var="paper" varStatus="status">
    <div style="text-indent: 2px;margin-bottom: 5px">试卷标题:${paper.getTitle()}</div>
    <a href="http://localhost:8080/ExaminationManagement1_war/PaperDetail?index=${status.index}&filer=1">详情</a>
    <a href="http://localhost:8080/ExaminationManagement1_war/PaperDetail?index=${status.index}&filer=2">编辑</a>
</c:forEach>
<script type="text/javascript">
    function addpaper(){
        window.location="http://localhost:8080/ExaminationManagement1_war/QuestionMsgP"
    }
    function back(){
        window.location="teacher.jsp"
    }
</script>
</body>
</html>
